package com.example.fitapp.activity.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.fitapp.activity.R;

public class UsActivity extends AppCompatActivity {
    private  Button exitButton ;
    private LinearLayout body_info;
    private  LinearLayout us_info;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.fragment_us);
        us_info =  findViewById(R.id.us_info);
        body_info =  findViewById(R.id.body_info) ;
        exitButton = findViewById(R.id.button_exit);
        us_info.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent editIntent = new Intent(UsActivity.this, UsEditActivity.class);
                startActivity(editIntent);
            }
        });
        body_info.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent editIntent = new Intent(UsActivity.this, BodyDataActivity.class);
                startActivity(editIntent);
            }
        });
        exitButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent exitIntent = new Intent(UsActivity.this, LoginActivity.class);
                startActivity(exitIntent);
                finish();
            }
        });

    }

}
